export default (date) => {
    if (!date) {
      return "";
    }
  
    return `${new Date(date).getFullYear()}-${
      new Date(date).getMonth() + 1
    }-${new Date(date).getDate()} ${new Date(date).getHours()>=10?new Date(date).getHours():'0'+new Date(date).getHours()}:${new Date(date).getMinutes()>=10?new Date(date).getMinutes():'0'+new Date(date).getMinutes()}:${new Date(date).getSeconds()>=10?new Date(date).getSeconds():'0'+new Date(date).getSeconds()}`;
  };
  